# declare executables
DCMTK_ADD_TEST_EXECUTABLE(ofstd_tests
  tatof.cc
  tbase64.cc
  tchrenc.cc
  terror.cc
  tests.cc
  tfilsys.cc
  tftoa.cc
  tipc.cc
  tlimits.cc
  tlist.cc
  tmap.cc
  tmarkup.cc
  tmem.cc
  tofdatim.cc
  toffile.cc
  tofstd.cc
  toption.cc
  tstack.cc
  tstl.cc
  tstring.cc
  tstrutl.cc
  tthread.cc
  ttuple.cc
  tuuid.cc
  tvariant.cc
  tvec.cc
  txml.cc
)

# make sure executables are linked to the corresponding libraries
DCMTK_TARGET_LINK_MODULES(ofstd_tests ofstd)

# This macro parses tests.cc and registers all tests
DCMTK_ADD_TESTS(ofstd)

# Cleanup testfile.$$$ generated by the ofstd_OFFile exhaustive testcase.
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
  "${CMAKE_CURRENT_BINARY_DIR}/testfile.$$$"
)
